﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace FlyLib.Entities
{
    [Serializable]
    [Table(Name = "TB_TaskPlan")]
    [System.Runtime.Serialization.DataContract]
    public class TB_TaskPlan
    {
        [Column(IsPrimaryKey = true, IsDbGenerated = true, AutoSync = AutoSync.OnInsert)]
        [System.Runtime.Serialization.DataMember]
        public int id { get; set; }

        [Column]
        [System.Runtime.Serialization.DataMember]
        public string taskName { get; set; }

        [Column]
        [System.Runtime.Serialization.DataMember]
        public string taskGroup { get; set; }

        [Column]
        [System.Runtime.Serialization.DataMember]
        public int taskStatus { get; set; }

        [Column]
        [System.Runtime.Serialization.DataMember]
        public string cron { get; set; }

        [Column]
        [System.Runtime.Serialization.DataMember]
        public DateTime? startTime { get; set; }

        [Column]
        [System.Runtime.Serialization.DataMember]
        public DateTime? endTime { get; set; }
    }
}
